<!DOCTYPE html><html><head><meta charset=UTF-8><title>{$title}</title><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"><meta name=apple-touch-fullscreen content=YES><meta name=format-detection content="telephone=no"><meta name=apple-mobile-web-app-status-bar-style content=black><link rel=stylesheet type=text/css href=/Public/projects/niudan/style/base.css><link rel=stylesheet type=text/css href=/Public/projects/niudan/style/common_class.css><script src=/Public/projects/niudan/libs/jquery-3.1.1.min.js></script><script src=/Public/projects/niudan/libs/velocity.min.js></script><script src=https://res.wx.qq.com/open/js/jweixin-1.3.0.js></script><script src=/Public/js/common/baidutongji.js></script><script>var ns = ns || {}
      ns.wxConfig = {
        appId : "{$wxConfig['appId']}",
        timestamp : "{$wxConfig['timestamp']}",
        nonceStr : "{$wxConfig['nonceStr']}",
        signature : "{$wxConfig['signature']}"
      }
      ns.wxShare = {
        share_title : "{$wxShare['share_title']}",
        share_desc : "{$wxShare['share_desc']}",
        share_link : "{$wxShare['share_link']}",
        share_image : "{$wxShare['share_image']}"
      }</script><link href=/Public/projects/niudan/css/app.04f932b64514ae04f9a9fcc53e442e84.css rel=stylesheet></head><body><div id=main></div><script>$(function(){

        ns.ID = ns.getUrlParams(location.href)['id'] || 17

        if(typeof wx == "undefined") return

        wx.config({
            debug: false,
            appId: ns.wxConfig['appId'],
            timestamp: ns.wxConfig['timestamp'],
            nonceStr: ns.wxConfig['nonceStr'],
            signature: ns.wxConfig['signature'],
            jsApiList: ['onMenuShareAppMessage','onMenuShareTimeline']
        });
        wx.error(function(res){
            console.log(res);
        });
        wx.ready( function( e ){
            var title = ns.wxShare.share_title,
                desc = ns.wxShare.share_desc,
                link = ns.wxShare.share_link,
                imgUrl = ns.wxShare.share_image
              ;
            wx.onMenuShareAppMessage({
                title: title,
                desc: desc,
                link: link ,
                imgUrl: imgUrl,
                type: 'link',
                dataUrl: '',
                success: function () {
                  ns.ajax({
                    url:'gameChance',
                    data:{
                      id: ns.ID
                    },
                    success(r){
                      if(r.status == 1){
                        ns.bus.$emit('game_chance', r["chance"])
                      }
                    }
                  })
                },
                cancel: function () {}
            });
            wx.onMenuShareTimeline({
                title: title,
                link: link,
                imgUrl: imgUrl,
                success: function () {
                  ns.ajax({
                    url:'gameChance',
                    data:{
                      id: ns.ID
                    },
                    success(r){
                      if(r.status == 1){
                        ns.bus.$emit('game_chance', r["chance"])
                      }
                    }
                  })
                },
                cancel: function () {}
            });

            ns.isWxReady = true
            if(ns.onWxReady){
                ns.onWxReady()
            }
        })
      })</script><script type=text/javascript src=/Public/projects/niudan/js/manifest.6ad13d16a87ffe820f6d.js></script><script type=text/javascript src=/Public/projects/niudan/js/vendor.cabe1272b6aee57e25e5.js></script><script type=text/javascript src=/Public/projects/niudan/js/app.d058c0b40d5c8c51550e.js></script></body></html>